Use gtk_accel_grouop_get_is_locked() rather than trying to access group->lock_count.
authorCody Russell <bratsche@gnome.org>
Thu, 22 Oct 2009 22:56:14 +0000 (17:56 -0500)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:51:18 +0000 (01:51 +0200)
gtk/gtkaccelmap.c

index b9f41ff61eee594fca4418e72f250178807cd57c..ac78bf3c7db8d1e8f2219f1f7be1cf69ecca15a1 100644 (file)
@@ -367,7 +367,7 @@ internal_change_entry (const gchar    *accel_path,
        for (i = 0; i < n; i++)
          {
            seen_accel = TRUE;
-           removable = !group->lock_count && !(ag_entry[i].key.accel_flags & GTK_ACCEL_LOCKED);
+           removable = !gtk_accel_group_get_is_locked (group) && !(ag_entry[i].key.accel_flags & GTK_ACCEL_LOCKED);
            if (!removable)
              goto break_loop_step5;
            if (ag_entry[i].accel_path_quark)